package net.hn.hnms.biz.plan.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.util.List;

/**
 * Author: ly
 * 销售计划
 */
@Data
@ApiModel("销售计划")
public class PlanSaleReq extends BaseReq {

    @ApiModelProperty(value = "销售计划id")
    private String salePlanId;
    @ApiModelProperty(value = "计划名称")
    private String planName;
    @ApiModelProperty(value = "计划编号")
    private String planCode;
    @ApiModelProperty(value = "运销方式")
    //@NotEmpty(message = "运销方式不能为空")
    private List<String> saleTypes;
//    @ApiModelProperty(value = "煤炭种类")
//    @Length(max = 32, message = "煤炭种类长度不能超过32个字符")
//    @NotBlank(message = "煤炭种类不能为空")
//    private String coalType;
    @ApiModelProperty(value = "计划销量")
    @Digits(integer = 10, fraction = 2, message = "计划销量格式不正确")
    @DecimalMin(value = "0.00", message = "计划销量格式不正确")
    @NotNull(message = "计划销量不能为空")
    private BigDecimal saleAmount;
    @ApiModelProperty(value = "计划日期")
    @NotBlank(message = "请选择计划日期")
    private String planStartDate;
    @ApiModelProperty(value = "计划类型 0日计划 1月计划 2年计划")
    @NotBlank(message = "计划类型不能为空")
    private String planType;
    @ApiModelProperty(value = "禁用:1  启用:0")
    private String status;
    @ApiModelProperty(value = "煤矿编号")
    private String mineCode;
    @ApiModelProperty(value = "销售去向：  0内销  1外销公路 2外销铁路")
    private String salesDestination;
    @ApiModelProperty(value = "煤炭种类：  0.原煤 1.块煤 2末煤 3.混煤")
    private String typeCoal;
}









